home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / boosters.arc / MOVEBLK.PAS < prev    next >
Pascal/Delphi Source File  |  1980-01-01  |  4KB  |  125 lines

  1. { ------------------------------------------------
  2.   MOVEBLK moves one part of the screen to another
  3.   ------------------------------------------------ }
  4.   Procedure MOVEBLK ( X1,Y1,X2,Y2,X3,Y3 : Integer);
  5.  
  6. {           Moves block defined by upper left and lower right
  7.             coordinates (X1,Y1),(X2,Y2) to a block beginning
  8.             at upper left coordinates (X3,Y3).  The orginal block
  9.             is erased. }
  10.  
  11. begin
  12.    InLine ( $1E/
  13.             $8B/$46/$0C/
  14.             $8B/$4E/$08/
  15.             $29/$C1/
  16.             $41/
  17.             $8B/$46/$0E/
  18.             $8B/$56/$0A/
  19.             $29/$C2/
  20.             $42/
  21.             $D1/$E2/
  22.             $8B/$D9/
  23.             $29/$D4/
  24.             $E2/$FC/
  25.             $8C/$D0/
  26.             $8E/$C0/
  27.             $8B/$FC/
  28.             $52/
  29.             $53/
  30.             $BB/$49/$04/         { mov   bx,449h        video byte offset   }
  31.             $31/$C0/             { xor   ax,ax          ax = 0              }
  32.             $8E/$D8/             { mov   ds,ax          video byte seg      }
  33.             $8A/$07/             { mov   al,[bx]        get byte            }
  34.             $3C/$07/             { cmp   al,7           mono?               }
  35.             $75/$06/             { jne   graphx         no                  }
  36.             $BA/$00/$B0/         { mov   dx,0B000h      regen for mono      }
  37.             $EB/$0C/$90/         { jmp   contin                             }
  38.             $BA/$DA/$03/        { mov  dx,3DAh  IBM CGA   }
  39.             $EC/                { in   al,dx    will snow }
  40.             $24/$08/            { and  al,1000b w/o this  }
  41.             $74/$FB/            { jz   vtrace   check     }
  42.                          { graphx:                                          }
  43.             $BA/$00/$B8/         { mov   dx,0B800h      regen for graphics  }
  44.                          { contin: mov   ds,dx                              }
  45.             $8E/$DA/
  46.             $8B/$76/$0C/
  47.             $4E/
  48.             $8B/$D6/
  49.             $B1/$07/
  50.             $D3/$E2/
  51.             $B1/$05/
  52.             $D3/$E6/
  53.             $01/$D6/
  54.             $8B/$46/$0E/
  55.             $48/
  56.             $D1/$E0/
  57.             $01/$C6/
  58.             $5A/
  59.             $59/
  60.             $D1/$E9/
  61.             $1E/
  62.             $56/
  63.             $52/
  64.             $51/
  65.             $B8/$A0/$00/
  66.             $29/$C8/
  67.             $29/$C8/
  68.             $FC/
  69.             $51/
  70.             $F3/$A5/
  71.             $59/
  72.             $4A/
  73.             $74/$04/
  74.             $01/$C6/
  75.             $EB/$F5/
  76.             $59/
  77.             $5A/
  78.             $5F/
  79.             $07/
  80.             $52/
  81.             $51/
  82.             $BB/$A0/$00/
  83.             $29/$CB/
  84.             $29/$CB/
  85.             $B8/$20/$0E/
  86.             $FC/
  87.             $51/
  88.             $F3/$AB/
  89.             $59/
  90.             $4A/
  91.             $74/$04/
  92.             $01/$DF/
  93.             $EB/$F5/
  94.             $8B/$7E/$04/
  95.             $4F/
  96.             $8B/$D7/
  97.             $B1/$07/
  98.             $D3/$E2/
  99.             $B1/$05/
  100.             $D3/$E7/
  101.             $01/$D7/
  102.             $8B/$46/$06/
  103.             $48/
  104.             $D1/$E0/
  105.             $01/$C7/
  106.             $59/
  107.             $5A/
  108.             $8B/$F4/
  109.             $8C/$D0/
  110.             $8E/$D8/
  111.             $B8/$A0/$00/
  112.             $29/$C8/
  113.             $29/$C8/
  114.             $FC/
  115.             $51/
  116.             $F3/$A5/
  117.             $59/
  118.             $4A/
  119.             $74/$04/
  120.             $01/$C7/
  121.             $EB/$F5/
  122.             $8B/$E5/
  123.             $83/$EC/$04/
  124.             $1F/$5D);
  125. end;